package com.wty.design.structural.decorator.v2;

/**
 * @Author wangtengyu
 * @Create 2018-09-19-10:20
 */
public class SausageDecorator extends AbstractDecorator {
    public SausageDecorator(AbstractBatterCake abstractBatterCake) {
        super(abstractBatterCake);
    }

    @Override
    protected String getDescription() {
        return super.getDescription()+" 加一根肠";
    }

    @Override
    protected int cost() {
        return super.cost()+2;
    }
}
